.PHONY: build clean install lint run test

build: clean
	python -m build

clean:
	rm -rf __pycache__
	rm -rf tests/__pycache__
	rm -rf *.egg-info
	rm -rf htmlcov
	rm -rf coverage.xml
	rm -rf build/
	rm -rf dist/
	rm -rf src/*.egg-info

install:
	pip install .

lint:
	ruff check src/ tests/ --fix
	ruff format src/ tests/
	mypy --check-untyped-defs src/

test:
	python -m unittest
